<?php
// +----------------------------------------------------------------------
// | ManniuRead
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://manniuyun.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: heitao <read@manniuyun.com>
// +----------------------------------------------------------------------

namespace app\book\base;

use manniu\controller\FrontBase;

use app\book\model\BookCategory;

class BookFrontBase extends FrontBase{
	/**
     * TP初始化方法
     * @access public
     */
    public function _initialize(){
    	parent::_initialize();

        // 模版变量赋值
        $this->assign([
            // 图书栏目
            'book_categorys' => BookCategory::getCategoryAll()
        ]);
    }
}